﻿Imports System.Data.Common
Imports System.Data.SqlClient

    ''' <summary>
    ''' 说明：定义的用户结构类  
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure UserInfo
        ''' <summary>
        ''' 说明：用户名  
        ''' </summary>
        ''' <remarks></remarks>
        Public UserName As String '操作员
        ''' <summary>
        ''' 说明：岗位  
        ''' </summary>
        ''' <remarks></remarks>
        Public Post As String '操作员所在岗位
        ''' <summary>
        ''' 说明：用户ID  
        ''' </summary>
        ''' <remarks></remarks>
        Public UserId As String '用户ID
        Public Password As String '//用户密码 2017/5/9
        ''' <summary>
        ''' 说明：机器码  
        ''' </summary>
        ''' <remarks></remarks>
        Public MachineId As String '机位码
        ''' <summary>
        ''' 说明：是否授权开放机器码  
        ''' </summary>
        ''' <remarks></remarks>
        Public OpenMachine As String '是否开放机位码。1=开放。0为限制
        ''' <summary>
        ''' 说明：IPAddress  
        ''' </summary>
        ''' <remarks></remarks>
        Public IpAddress As String 'ip地址
        ''' <summary>
        ''' 说明：所属部门  
        ''' </summary>
        ''' <remarks></remarks>
        Public DeptName As String '部门信息
        ''' <summary>
        ''' 说明：Notes Full Name   
        ''' </summary>
        ''' <remarks></remarks>
        Public NoteFullName As String '//notes用户全称
        ''' <summary>
        ''' 说明：NotesID，对应Notes组织库的用户ID  
        ''' </summary>
        ''' <remarks></remarks>
        Public NotesId As String 'notesID--一串数字
        ''' <summary>
        ''' 说明：应用实例ID  
        ''' </summary>
        ''' <remarks></remarks>
        Public SysId As String
        ''' <summary>
        ''' 2017/12/11
        ''' 说明：备注信息     
        ''' </summary>
        ''' <remarks></remarks>
        Public Memo As String
        ''' <summary>
        ''' 2017/12/11
        ''' 说明：Net密码加密     
        ''' </summary>
        ''' <remarks></remarks>
        Public NetPassword As String
        ''' <summary>
        ''' 2017/12/11
        ''' 说明：NET调用机器码      
        ''' </summary>
        ''' <remarks></remarks>
        Public NetMachineId As String
        ''' <summary>
        ''' 2021.5.11
        ''' 手机号
        ''' </summary>
        public Mobile As String 
        ''' <summary>
        ''' 2021.10.19
        ''' 钉钉code
        ''' </summary>
        Public Dingtalkid As string 
    End Structure
    ''' <summary>
    ''' 说明：自定义的数据库结构类  
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure DbInfo
        ''' <summary>
        ''' 说明：服务器地址  
        ''' </summary>
        ''' <remarks></remarks>
        Public ServerName As String
        ''' <summary>
        ''' 说明：数据库名  
        ''' </summary>
        ''' <remarks></remarks>
        Public DbName As String
        ''' <summary>
        ''' 说明：登录账号  
        ''' </summary>
        ''' <remarks></remarks>
        Public Dbid As String
        ''' <summary>
        ''' 说明：数据库密码 
        ''' </summary>
        ''' <remarks></remarks>
        Public DbPassword As String
        ''' <summary>
        ''' 说明：数据库链接字符串  
        ''' </summary>
        ''' <remarks></remarks>
        Public Connection As String
'        ''' <summary>
'        ''' 说明：数据库提供者  
'        ''' </summary>
'        ''' <remarks></remarks>
'        Public DbProviderName As DbProviderType

    End Structure
    ''' <summary>
    ''' 创建时间：2017/5/16
    ''' 说明:类调用身份验证结构类  
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure UserSecurity
        Public UserName As String '//用户名

        Public SecuriKey As String '//类验证码
        Public ProcKey As String '//类过程及函数验证
    End Structure

    ''' <summary>
    ''' 创建时间;2017/5/18
    ''' 说明：时间使用的结构类  
    ''' </summary>
    ''' <remarks>当前开始时间，结束时间；同期开始和结束时间</remarks>
    Public Structure DateInfo
        ''' <summary>
        ''' 说明：当前开始时间  
        ''' </summary>
        ''' <remarks></remarks>
        Public FDate As DateTime
        ''' <summary>
        ''' 说明：当前结束时间  
        ''' </summary>
        ''' <remarks></remarks>
        Public EDate As DateTime
        ''' <summary>
        ''' 说明:同期开始时间  
        ''' </summary>
        ''' <remarks></remarks>
        Public PreFDate As DateTime
        ''' <summary>
        ''' 说明：同期结束时间  
        ''' </summary>
        ''' <remarks></remarks>
        Public PreEDate As DateTime
    End Structure
    ''' <summary>
    ''' 创建时间：2017/5/19
    ''' 说明：模块权限结构类  
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure ModuleInfo
        ''' <summary>
        ''' 说明：模块访问权限  
        ''' </summary>
        ''' <remarks></remarks>
        Public HModEdit As EditQx
        ''' <summary>
        ''' 说明：报表权限  
        ''' </summary>
        ''' <remarks></remarks>
        Public HReport As EditQx
        ''' <summary>
        ''' 说明:模块审核权限  
        ''' </summary>
        ''' <remarks></remarks>
        Public HCheck As EditQx
        ''' <summary>
        ''' 说明：图文报表权限  
        ''' </summary>
        ''' <remarks></remarks>
        Public HImgRpt As EditQx
        ''' <summary>
        ''' 说明：共享用户id  
        ''' </summary>
        ''' <remarks></remarks>
        Public HShareId As String
        ''' <summary>
        ''' 说明：控制用户id  
        ''' </summary>
        ''' <remarks></remarks>
        Public HControlId As String
        ''' <summary>
        ''' 说明：共享用户清单  
        ''' </summary>
        ''' <remarks></remarks>
        Public HShareName As String
        ''' <summary>
        ''' 说明：控制用户清单  
        ''' </summary>
        ''' <remarks></remarks>
        Public HControlName As String
    End Structure
'    ''' <summary>
'    ''' 创建时间：2017/6/13
'    ''' 说明：返回数据查询时带参数的sql语句以及这些参数相关组成的参数数组  
'    ''' </summary>
'    ''' <remarks></remarks>
'    Public Structure DbsqlParaments
'        ''' <summary>
'        ''' 说明：返回查询语句  
'        ''' </summary>
'        ''' <remarks></remarks>
'        Public Sqlcmd As String
'        ''' <summary>
'        ''' 说明：主要是用于sql server数据库操作时，返回参数数组  
'        ''' </summary>
'        ''' <remarks></remarks>
'        Public Sqlpara() As SqlParameter
'        ''' <summary>
'        ''' 说明：主要用于其他非sql server数据库操作时，返回参数数组  
'        ''' </summary>
'        ''' <remarks></remarks>
'        Public Dbpara() As DbParameter
    '    End Structure
    ''' <summary>
    ''' 创建时间：2017/9/22
    ''' 说明：门店信息    
    ''' </summary>
    ''' <remarks></remarks>
    Public Structure StoreInfo
        ''' <summary>
        ''' 说明：门店号    
        ''' </summary>
        ''' <remarks></remarks>
        Public StoreCode As String
        ''' <summary>
        ''' 说明：门店名称    
        ''' </summary>
        ''' <remarks></remarks>
        Public StoreName As String
        ''' <summary>
        ''' 2018.7.20
        ''' 门店类型。5=直营店，7=加盟店
        ''' </summary>
        ''' <remarks></remarks>
        Public Category As String
    End Structure

''' <summary>
''' 创建时间：2017/4/3
''' 说明：编辑权限的枚举类型
''' </summary>
''' <remarks></remarks>
Public Enum EditQx '
    ''' <summary>
    ''' 说明：不能编辑，无权限查看和编辑  
    ''' </summary>
    ''' <remarks></remarks>
    NoEdit = -1 '不能编辑
    ''' <summary>
    ''' 说明：只读  
    ''' </summary>
    ''' <remarks></remarks>
    Read = 0 '只读
    ''' <summary>
    ''' 说明：默认只能编辑自己  
    ''' </summary>
    ''' <remarks></remarks>
    EditOnly = 1 '
    ''' <summary>
    ''' 说明：完全编辑  
    ''' </summary>
    ''' <remarks></remarks>
    EditAll = 2 '完全编辑
    ''' <summary>
    ''' 说明：自定义权限  
    ''' </summary>
    ''' <remarks></remarks>
    Custom = 3

End Enum